package org.example.mallweb.mallservice.mybatiscommon.articletags;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.example.mallcommon.projo.ArticleTag;
import org.example.mallcommon.projo.Tag;
import org.example.mallcommon.vo.ArticleUserVo;

import java.util.List;

@Mapper
/**
 * @author 韩先楚
 * 文章内容关联表
 */
public interface ArticleTagMapper extends BaseMapper<ArticleTag> {

    List<Tag> selectArticleTagByArticleId(@Param("articleId") Long articleId);


    //批量插入文章标签通过文章id
    void insertListByArticleId(@Param("articleId") Long id, @Param("tags")List<Long> tags);
}
